import { ref } from "vue";

export const locationPoint = ref([
    { name: '01区', locationId: 1, code: 'LOCATION_01', data: [{ name: '全部设备', value: 128 }, { name: '在线设备', value: 127 }, { name: '离线设备', value: 1 }, { name: '告警设备', value: 2 }], position: { top: '25%', left: '67%' }, popoverVisible: false, status: true, staticLabel: '01分区标签', alertLabel: '01分区标签_告警' },
    { name: '02区', locationId: 2, code: 'LOCATION_02', data: [{ name: '全部设备', value: 128 }, { name: '在线设备', value: 127 }, { name: '离线设备', value: 1 }, { name: '告警设备', value: 2 }], position: { top: '28%', left: '56%' }, popoverVisible: false, status: true, staticLabel: '02区标签', alertLabel: '02区标签_告警' },
])

export const initlocationPointData = () => {
    locationPoint.value = [
        { name: '01区', locationId: 1, code: 'LOCATION_01', data: [{ name: '全部设备', value: 128 }, { name: '在线设备', value: 127 }, { name: '离线设备', value: 1 }, { name: '告警设备', value: 2 }], position: { top: '25%', left: '67%' }, popoverVisible: false, status: true, staticLabel: '01分区标签', alertLabel: '01分区标签_告警' },
        { name: '02区', locationId: 2, code: 'LOCATION_02', data: [{ name: '全部设备', value: 128 }, { name: '在线设备', value: 127 }, { name: '离线设备', value: 1 }, { name: '告警设备', value: 2 }], position: { top: '28%', left: '56%' }, popoverVisible: false, status: true, staticLabel: '02区标签', alertLabel: '02区标签_告警' },
    ]
}